﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="QueryVBook.ascx.vb" Inherits="WebForm_QueryVBook" %>
<%@ Register Src="~/WebForm/CommonControl/CalendarTextBox.ascx" TagName="CalendarTextBox" TagPrefix="My" %>
<%@ Register src="~/WebForm/CommonControl/VolunteerQueryControl.ascx" tagname="VolunteerQueryControl" tagprefix="uc1" %>

<uc1:VolunteerQueryControl ID="VolunteerQueryControl1" runat="server" LoadOnStartUp="true" />
<table>
   <tr>
        <td align="right">
            <asp:Label ID="lblIssueDate" runat="server" meta:resourcekey="lblIssueDate"></asp:Label></td>
        <td align="left" colspan="3">      
            <My:CalendarTextBox ID="txtIssueStartDate" runat="server" />~
            <My:CalendarTextBox ID="txtIssueEndDate" runat="server" />
        </td>
    </tr>
    <tr>
        <td align="right">
            <asp:Label ID="lblVBookID" runat="server" meta:resourcekey="lblVBookID"></asp:Label></td>
        <td align="left" colspan="3">
            <asp:TextBox ID="txtVBookID" runat="server"></asp:TextBox>~
            <asp:TextBox ID="txtVBookID2" runat="server"></asp:TextBox>
        </td>
    
        <td align="right">
    </tr>
    <tr>
        <td align="right">
        </td>
        <td align="left" colspan="3">
            <asp:Button ID="btnQuery" runat="server" meta:resourcekey="btnQuery" />
            <asp:Button ID="btnExcel" runat="server" meta:resourcekey="btnExcel" />
            <asp:Button ID="btnExcel2" runat="server" meta:resourcekey="btnExcel2" />
            <asp:Button ID="btnPrintVCard" runat="server" meta:resourcekey="btnPrintVCard" />
            <asp:Button ID="btnPrintVBook" runat="server" meta:resourcekey="btnPrintVBook" />
            <asp:CheckBox ID="chkPrintVCard" runat="server" meta:resourcekey="chkPrintVCard" Visible="false" />
        </td>
    </tr>
    


</table>
<br />
<My:MyGridView ID="gv" runat="server" SkinID="pager" AllowHoverSelect="False" AllowHoverEffect="True" DataKeyNames="ID,VBookActive,VolunteerID"
    meta:resourcekey="gvResource1" AllowSorting="true" MySortExpression="VBookID" MySortDirection="Ascending">
    <Columns>
        <asp:BoundField DataField="VOrganizationName" meta:resourcekey="bfVOrganizationName"  SortExpression="VOrganizationName" />    
        <My:VolunteerIDBoundField DataField="VolunteerID" meta:resourcekey="bfVolunteerID"
            ReadOnly="True" />    
        <asp:BoundField DataField="VolunteerName" meta:resourcekey="bfVolunteerName" />
        <asp:BoundField DataField="VBookID" meta:resourcekey="bfVBookID" SortExpression="VBookID" />
        <asp:BoundField DataField="IssueDate" meta:resourcekey="bfIssueDate" />
        <asp:BoundField DataField="Comment" meta:resourcekey="bfComment" >
            <headerstyle width="100px" />
        </asp:BoundField> 
        <asp:TemplateField>
            <ItemTemplate>
                <asp:MultiView ID="mvDetailViewMode" runat="server" ActiveViewIndex="0">
                    <asp:View ID="vwEdit" runat="server">
                        <asp:LinkButton ID="lknSelect" runat="server" meta:resourcekey="lknSelect" CommandName="Select"></asp:LinkButton>
                    </asp:View>
                    <asp:View ID="vwView" runat="server">
                        <asp:LinkButton ID="lknView" runat="server" meta:resourcekey="lknView" CommandName="MyView"></asp:LinkButton>
                    </asp:View>                    
                </asp:MultiView>
                
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" />
        </asp:TemplateField>  
        <asp:TemplateField>
            <ItemTemplate>
                   <asp:LinkButton ID="lknReject" runat="server" meta:resourcekey="lknReject" CommandName="Reject"></asp:LinkButton>
            </ItemTemplate>
        </asp:TemplateField>   
    </Columns>
</My:MyGridView>
